package edu.sctu.practice.class01.wangxiaoqiang.practice.test_one;

/**
 * Created by admin on 2015/10/9.
 */
public class Number {

    public int num = 100;

    public void compareValue() {
        NumOfScanner numOfScanner = new NumOfScanner();
        int val = numOfScanner.getNum();
        if (num > val) {
            System.out.println("你输入的值比我们定义的值小！");
        } else if (num == val) {
            System.out.println("你输入的值和我们定义的值大小相等！");
        } else {
            System.out.println("你输入的值比我们定义的值大！");
        }

    }
}
